package cn.green.components.model;

import org.springframework.security.core.GrantedAuthority;

/**
 * 角色
 */
public class SysRole implements GrantedAuthority {

    public String id;

    public String role;

    public SysRole() {}

    public SysRole(String id, String role) {
        this.id = id;
        this.role = role;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    @Override
    public String getAuthority() {
        return this.role;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
